<?php
/**
 * Affiche le dump d'une variable
 */
class BphVarDump extends BphItemBox{
	function __Construct($pvar, $plabel='') {
		parent::__Construct("pre");
		$this->plain_content = True;
		$this->raw = True;
		ob_start ();
		var_dump($pvar);
		$label = new BphItemBox('strong');
		$label->AddItems($plabel);
		$label->raw = TRUE;
		$content = ob_get_clean();
		$this->AddItems($label,new BphItem('br'),$content);
	}
}
?>
